<template>
  <div>
    <el-tree :data="data" :props="defaultProps" @node-click="handleNodeClick" />
  </div>

</template>

<script>

export default {

name: "wxj",
  props:['data'],
  data() {
    return {
      defaultProps: {
        children: 'children',
        label: 'label',
      }
    }
  },
  methods: {
    handleNodeClick(data) {
      this.$emit('id',data['id'])
    },

  },
  mounted() {

  }
}
</script>

<style scoped>

</style>